package com.bdqn.oa.utils;

/**
 * 公共消息枚举类
 * @author zhouxw
 */
public enum CommentCode {
    /**
     * 操作成功
     */
    SUCCESS(200L,"操作成功！"),
    /**
     * 操作失败
     */
    FAILED(500L,"操作失败！"),
    /**
     * 请求路径不存在
     */
    FAILED_ERROR_URL(404L,"路径不存在！"),
    /**
     * 服务器异常
     */
    FAILED_ERROR_DATA(501L,"后台服务异常，请联系管理员。。");
    private final Long code;
    private final String message;

    CommentCode(Long code, String message) {
        this.code = code;
        this.message = message;
    }

    public Long getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
